package com.lhf.warnsend.warnsendjson.vo;

import java.io.Serializable;

/**
 * <p></p>
 *
 * @author liuhf
 * @createTime 2021/9/2 14:45
 * @since 1.0
 */
public class MsgBodyVO implements Serializable {


    private static final long serialVersionUID = -1L;
    private String channel;
    private String json;
    private String sign;
    private Integer key;

    private static final Integer DEFAULT_KEY = 1;

    public String getChannel() {
        return channel;
    }

    public void setChannel(String channel) {
        this.channel = channel;
    }

    public String getJson() {
        return json;
    }

    public void setJson(String json) {
        this.json = json;
    }

    public String getSign() {
        return sign;
    }

    public void setSign(String sign) {
        this.sign = sign;
    }

    public Integer getKey() {
        return key == null ? DEFAULT_KEY : key;
    }

    public void setKey(Integer key) {
        this.key = key;
    }

    @Override
    public String toString() {
        return "MsgBodyVO{" +
                "channel='" + channel + '\'' +
                ", json='" + json + '\'' +
                ", sign='" + sign + '\'' +
                ", key=" + getKey() +
                '}';
    }
}
